package com.qqs.stock.handler;

import com.qqs.stock.dto.DeductStockOrderPromise;

import java.util.concurrent.TimeUnit;

public interface DeductStockMerge {
    boolean merge(DeductStockOrderPromise promise) throws InterruptedException;
    boolean merge(DeductStockOrderPromise promise, long timeout, TimeUnit unit) throws InterruptedException;
    void handler();
}
